<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>首页</title>
		<link rel="stylesheet" type="text/css" href="../css/mui.min.css" />
		<link rel="stylesheet" type="text/css" href="../css/iconfont.css" />
		<link rel="stylesheet" type="text/css" href="../css/own.css" />

		<style type="text/css">
		
		</style>
	</head>

	<body>
		
		
	<div class="mui-content">
			<div id="homeDiv" class="mui-content own-content-padding">
	
		<!--banner-->
		<div>
		<img style="max-width: 100%;" src="../img/index_02.jpg"/>
		</div>
		<!--mui-table-view mui-grid-view-->
		<div id="recommend" class=" own-gray-color">
			    <div class="mui-row" style=" padding: 0 4px;">
			    	
		<div style=" margin-top: 5px;border-right: solid 2px #FFFFFF;  " class="mui-col-sm-4 mui-col-xs-4">
			<a href="Home/spirit.html" class="index-spirit" style="border-radius: 8px;background-color: #ec6941; display: block;text-align: center;">
				<div>
				<img src="../img/index12_08.jpg"/ style=" height: 55px;">
				</div>
				<span >精神关怀</span></a>
				
			</a>
		</div>
		
		
		
		<div style=" margin-top: 5px;border-right: solid 2px #FFFFFF; " class="mui-col-sm-4 mui-col-xs-4">
			<a href="Home/mentality.html" class="index-spirit" style="border-radius: 8px;background-color: #32b16c; display: block;text-align: center;">
				<div>
				<img src=" ../img/index12_03.jpg"/ style=" height: 55px;">
				</div>
				<span >心理咨询</span></a>
				
			</a>
		</div>
		
		
		<div style=" margin-top: 5px; " class="mui-col-sm-4 mui-col-xs-4">
			<a href="Home/physical.html" class="index-spirit" style="border-radius: 8px;background-color: #fd9521; display: block;text-align: center;">
				<div>
				<img src="../img/index12_05.jpg"/ style=" height: 55px;">
				</div>
				<span >健康体检</span></a>
				
			</a>
		</div>
		
		
		</div>
		
		
			
				 <div class="mui-row" style=" padding: 0 4px;">
		<div style=" margin-top: 5px;border-right: solid 2px #FFFFFF;  " class="mui-col-sm-4 mui-col-xs-4">
			<a href="#" class="index-spirit" style="border-radius: 8px;background-color: #49c6a2; display: block;text-align: center;">
				<div>
				<img src="../img/index12_14.jpg"/ style=" height: 55px;">
				</div>
				<span >门诊陪护</span></a>
				
			</a>
		</div>
		
		
		
		<div style=" margin-top: 5px;border-right: solid 2px #FFFFFF; " class="mui-col-sm-4 mui-col-xs-4">
			<a href="#" class="index-spirit" style="border-radius: 8px;background-color: #22ac38; display: block;text-align: center;">
				<div>
				<img src="../img/index12_17.jpg"/ style=" height: 55px;">
				</div>
				<span >住院陪护</span></a>
				
			</a>
		</div>
		
		
		<div style=" margin-top: 5px; " class="mui-col-sm-4 mui-col-xs-4">
			<a href="#" class="index-spirit" style="border-radius: 8px;background-color: #009e96; display: block;text-align: center;">
				<div>
				<img src="../img/index12_19.jpg"/ style=" height: 55px;">
				</div>
				<span >预约挂号</span></a>
				
			</a>
		</div>
					
					</div>
		
		
		
		 <div class="mui-row" style=" padding: 0 4px;">
		<div style=" margin-top: 5px;border-right: solid 2px #FFFFFF;  " class="mui-col-sm-4 mui-col-xs-4">
			<a href="Home/health-needtem.html" class="index-spirit" style="border-radius: 8px;background-color: #ae5da1; display: block;text-align: center;">
				<div>
				<img src="../img/index12_26.jpg"/ style=" height: 55px;">
				</div>
				<span >健康知识</span></a>
				
			</a>
		</div>
		
		
		
		<div style=" margin-top: 5px;border-right: solid 2px #FFFFFF; " class="mui-col-sm-4 mui-col-xs-4">
			<a href="Home/service-needtem.html" class="index-spirit" style="border-radius: 8px;background-color: #13b5b1; display: block;text-align: center;">
				<div>
				<img src="../img/index12_28.jpg"/ style=" height: 55px;">
				</div>
				<span >服务介绍</span></a>
				
			</a>
		</div>
		
		
		<div style=" margin-top: 5px; " class="mui-col-sm-4 mui-col-xs-4">
			<a href="#" class="index-spirit" style="border-radius: 8px;background-color: #9dc855; display: block;text-align: center;">
				<div>
				<img src="../img/index12_24.jpg"/ style=" height: 55px;">
				</div>
				<span >更多服务</span></a>
				
			</a>
		</div>
					
					</div>
		
		
	</div>
			
		
		</div>

	</body>

	<script src="../js/mui.min.js" charset="UTF-8"></script>
	<script src="../js/own.js" charset="UTF-8"></script>
	<script type="text/javascript">
		mui.init({
			swipeBack: false
		});
//		var currentWebview;
//		var homeDiv;
		//var marqueeArray = []; //跑马灯数据数组
		//var recommendArray = []; //推荐商品数组
		mui.plusReady(function() {
			
			//精神
				/*var spirit=document.getElementById("spirit");
                        	spirit.addEventListener("tap",function(){
                        		
                        		 mui.openWindow({
                     	   			url:'../Home/spirit.html',
                       	   			id:'../Home/spirit.html'
                        	   	

                        	});
				});*/
				
			//心理
				/*var mentality=document.getElementById("mentality");
                        	mentality.addEventListener("tap",function(){
                        		
                        		 mui.openWindow({
                     	   			url:'../Home/mentality.html',
                       	   			id:'../Home/mentality.html'
                        	   	

                        	});
				});
			*/
			
			
//			currentWebview = plus.webview.currentWebview();
//			homeDiv = document.getElementById('homeDiv');
			//初始化一些本地数据
			//initSomeData();
			//设置跑马灯
			//setMarquee();
			//设置推荐商品
			//setRecommend();
			//添加每个item点击的监听事件
			mui('#recommend').on('tap', 'a', function() {
				
				if(localStorage.getItem('user')) {
				 	//alert(22);
				 	var item = this;
				var itemID = this.getAttribute('href');
				
				//alert(itemID);
				var spanName = this.getElementsByTagName("span")[0].innerText;
				//plus.storage.setItem("oldId", itemID);
				pushWebView({
					webType: 'newWebview_First',
					id: itemID,
					href: itemID,
					aniShow: getaniShow(),
					title: spanName,
					isBars: false,
					barsIcon: '',
					extendOptions: {}
				});
				 } else {
				 	//alert(33);
						pushWebView({
					webType: 'newWebview_First',
					id: 'mine/login.html',
					href: 'mine/login.html',
					aniShow: getaniShow(),
					title: "登录",
					isBars: false,
					barsIcon: '',
					extendOptions: {}	
				})
						
						}
				 
				
			});
		})

				
			
	</script>

</html>